package com.keyancompany.zhongbaopingtai.activity;


import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.keyancompany.zhongbaopingtai.R;
import com.keyancompany.zhongbaopingtai.adapter.RewardAdapter;
import com.keyancompany.zhongbaopingtai.utils.IntentUtils;
import com.keyancompany.zhongbaopingtai.weight.NoScorllerListView;

import butterknife.Bind;
import butterknife.BindString;
import butterknife.OnClick;

/**
 * @author xihe
 *         项目管理
 */
public class ProjectManangerActivty extends BaseActivity {


    @BindString(R.string.project_management)
    String projectTitle;
    @Bind(R.id.toolbar)
    Toolbar toolbar;
    @Bind(R.id.team_name)
    TextView title;  //项目名称
    @Bind(R.id.author)
    TextView author; //作者
    @Bind(R.id.create_time)
    TextView time; //发布时间
    @Bind(R.id.period)
    TextView period; //周期
    @Bind(R.id.moeny)
    TextView money; //金额
    @Bind(R.id.project_desc)
    TextView projectDesc;
    @Bind(R.id.project_content)
    TextView projectContent;
    @Bind(R.id.technical_request)
    TextView technicalRequest;
    @Bind(R.id.technical_request_value)
    TextView technicalRequestValue;
    @Bind(R.id.project_adjunct)
    TextView projectAdjunct;
    @Bind(R.id.project_adjunct_value)
    TextView projectAdjunctValue;
    @Bind(R.id.project_enjoy_value)
    TextView projectEnjoyValue; //应赏要求
    @Bind(R.id.auth_sina)
    TextView authSina;
    @Bind(R.id.auth_weixin)
    TextView authWeiXin;
    @Bind(R.id.detail_noscorll_listview)
    NoScorllerListView detailNoscorllListview;

    @Bind(R.id.project_detail_collection_icon)
    ImageView collectionIcon;

    @Override
    protected int getContentViewId() {
        return R.layout.activity_project_detail;
    }

    @Override
    protected int getMenuId() {
        return 0;
    }

    @Override
    protected void initToolBar() {
        toolbar.setTitle(projectTitle);
        setSupportActionBar(toolbar);
        initHomeAsUpEnable(toolbar);
    }

    @Override
    protected void setUpViews() {
        detailNoscorllListview.setAdapter(new RewardAdapter(null,mContext));
    }

    @OnClick(R.id.to_sign_up)//报名
    public void toSignUp(View view) {
        IntentUtils.startActivity(mContext, SignUpActivity.class);
    }

    @OnClick(R.id.to_reward)//讨论
    public void toReward(View view) {
        IntentUtils.startActivity(mContext, RewardActivity.class);
    }

}
